package com.pktechan.api.dao;

import com.pktechan.api.base.BaseMapper;
import com.pktechan.api.entity.CustCarriageFlow;
import com.pktechan.api.vo.CustCarriageFlowVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: cloudfloating
 * @description: 配送商运费流水
 * @author: qx.zhang
 * @create: 2021-03-05 12:51
 **/
@Repository("custCarriageFlowMapper")
public interface CustCarriageFlowMapper extends BaseMapper {
    /**
     * 根据订单ID查询应得的运费流水
     *
     * @param tradeOrderId
     * @return
     */
    List<CustCarriageFlow> getGenerateListByTradeOrderId(Integer tradeOrderId);

    /**
     * 查看运费流水
     * @param custId
     * @return
     */
    List<CustCarriageFlowVO> getCustCarriageFlowList(Integer custId);

    /**
     * 根据custId获取运费兑付流水
     * @param custCarriageFlow
     * @return
     */
    List<CustCarriageFlow> getCarriageWithdrawalFlowList(CustCarriageFlow custCarriageFlow);
}
